<?php

use rocotito\businessLogic\BL_place;
require_once('businessLogic.php');

$bl_place = new BL_place();
$bl_place->BL_place('rocky');
$places = $bl_place->getPlace();
foreach ($places as $place){
	echo $place->getCod_place().'<br />';
	echo $place->getName().'<br />';
	echo $place->getPhone().'<br />';
	echo $place->getDelivery().'<br />';
	echo $place->getWebsite().'<br />';
	echo $place->getEmail().'<br />';
	echo $place->getDescription().'<br />';
	$typefood = $place->getTypefood();
	foreach($typefood as $row){
		echo $row->getCod_type_food().'<br />';
		echo $row->getName().'<br />';
	}
	$address =  $place->getAddress();
	foreach($address as $row){
		
		echo $row->getCod_address().'<br />';
		echo $row->getPlace_cod_place().'<br />';
		echo $row->getAddress_line_1().'<br />';
		echo $row->getAddress_line_2().'<br />';
		echo $row->getZip().'<br />';
		echo $row->getReference().'<br />';
		echo $row->getPhone().'<br />';
	};
}



?>